<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>用window.open方法打开窗口</title>
    <script src="event.js"></script>

</head>
<body>
<button onclick="onClick_OpenWindow()">打开子窗口</button>
<p/>
<button onclick="onClick_Focus()">获取焦点</button>
<p/>
<button onclick="onClick_Blur()">失去焦点</button>
<p/>
<button onclick="onClick_Close()">关闭窗口</button>
<p/>
<button onclick="onClick_PrintDialog()">显示打印对话框</button>
<p/>
<input id="data" />
<p/>
<button onclick="onClick_SendMessage()">将数据传递给子窗口</button>
<p/>
<button onclick="onClick_Eval()">使用eval方法向子窗口传递数据</button>

</body>
</html>
